package grape.attend.rest.user.mapper;

import grape.attend.rest.user.form.MyLeaveApplicationListPageForm;
import grape.attend.service.user.po.UserLeaveApplication;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.user.form.UserLeaveApplicationCreateForm;
import grape.attend.rest.user.form.UserLeaveApplicationUpdateForm;
import grape.attend.rest.user.form.UserLeaveApplicationListPageForm;
import grape.attend.rest.user.vo.UserLeaveApplicationVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 用户请/补假单表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-29
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserLeaveApplicationWebMapper extends WebMapper<UserLeaveApplicationVo, UserLeaveApplication> {

    UserLeaveApplication formToPo(UserLeaveApplicationCreateForm f);
    UserLeaveApplication formToPo(UserLeaveApplicationUpdateForm f);
    UserLeaveApplication formToPo(UserLeaveApplicationListPageForm f);
    UserLeaveApplication formToPo(MyLeaveApplicationListPageForm f);
}
